import { View } from "../../../../mvc/core/View";
import { ObjCreate } from "../../common/ObjCreate";
import { ImagesConst } from "../../../resource/ImagesConst";
import { Language } from "../../../../../extend/language/Language";
import { GTextFormat } from "../../../../common/GTextFormat";
import { FontUtil } from "../../../../common/font/FontUtil";
type int = number;
//class MountLevelBackTipsSp
    
    export  class MountLevelBackTipsSp extends View
    {
        constructor()
        {
            super();
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            ObjCreate.createBg(0, 0, 86, 58, this);
            ObjCreate.createBg(-6, 24, 115, 3, this, ImagesConst.Line);
            var loc1=ObjCreate.createGTextField(Language.getString(74301), 4, 2, 80, 20, this);
            this._lvBackTx = ObjCreate.createGTextField("", 0, 30, 86, 24, this, new GTextFormat(FontUtil.songtiName, 14, 15788607, true, null, null, null, null, flash.text.TextFormatAlign.CENTER));
            ObjCreate.createBg(95, 0, 86, 58, this);
            ObjCreate.createBg(89, 24, 115, 3, this, ImagesConst.Line);
            var loc2=ObjCreate.createGTextField(Language.getString(74302), 99, 2, 80, 20, this);
            this._costTx = ObjCreate.createGTextField("", 95, 30, 86, 24, this, new GTextFormat(FontUtil.songtiName, 14, 15788607, true, null, null, null, null, flash.text.TextFormatAlign.CENTER));
            return;
        }

        public setData(arg1: int, arg2: int): void
        {
            var loc1=0;
            if (arg1 > 0) 
            {
                loc1 = arg1 * 100 - arg2;
                this._lvBackTx.text = Language.getStringByParam(79016, loc1);
                this._costTx.text = Language.getStringByParam(79015, loc1);
            }
            else 
            {
                this._lvBackTx.text = Language.getStringByParam(79016, 0);
                this._costTx.htmlText = Language.getString(79017);
            }
            return;
        }

        /* internal */ /* var */_lvBackTx: Object /* flash.text.TextField */;

        /* internal */ /* var */_costTx: Object /* flash.text.TextField */;
    }
